
import axios from "axios";
import {BASE_URL} from '@/config/conster'
var instance = axios.create({

    baseURL: BASE_URL,

    timeout: 30000,


});

export let $get = async (url,params)=>{
    let {data} = await instance.get(url,{params})
    return data
}

export let $post = async (url,params)=>{
    let {data} = await instance.post(url,params)
    return data
}

